import { Canvas, Meta } from "@storybook/blocks";
import * as Pattern from './pattern.stories.tsx';

<Meta title="pattern" of={Pattern}/>

# pattern
正则集合,根据name返回所匹配的正则pattern和提示信息message

#### Example

<Canvas of={Pattern.PWD}/>

## Usage

```ts
import {pattern,RegName} from "apusic-ui-kit";

const {pattern:reg,message} = pattern(RegName.PWD,"g");
```

#### Arguments
- **name** - 正则类型名称
- **para** - 默认'g', 表示全局匹配

